<?php

namespace App\Http\Middleware;


use Illuminate\Http\Request;
use App\Providers\RouteServiceProvider;
use Closure;
use Illuminate\Support\Facades\Auth;

class AuthenticationMiddleware
{

    public function handle(Request $request, Closure $next)
    {
//        $guards = empty($guards) ? [null] : $guards;
//
//        foreach ($guards as $guard) {
//            if (Auth::guard($guard)->check()) {
//                return redirect(RouteServiceProvider::HOME);
//            }
//        }
        //var_dump('AuthenticationMiddleware . ');
        return $next($request);
    }
}
